package com.dmai.capacity.platform.oauth.common.service;

import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dmai.capacity.platform.common.dto.PageResult;
import com.dmai.capacity.platform.common.dto.ResponseEntity;
import com.dmai.capacity.platform.common.model.OauthClient;


public interface IOauthClientService extends IService<OauthClient> {

    ResponseEntity saveClient(OauthClient oauthClientDto) throws Exception;

    /**
     * 查询应用列表
     *
     * @param params
     * @param isPage 是否分页
     */
    PageResult<OauthClient> listClient(Map<String, Object> params, boolean isPage);

    boolean delClient(long id);

    OauthClient loadClientByClientId(String clientId, String requestUrl);
}
